package net.wangds.web.module;

import net.wangds.web.annotations.AuthType;

import java.util.ArrayList;
import java.util.List;

public class AuthRequest {

    private AuthType type = AuthType.NO;
    private List<String> requireRoles = new ArrayList<>();
    private List<String> requireAnyRoles = new ArrayList<>();
    private List<String> requirePrivileges = new ArrayList<>();
    private List<String> requireAnyPrivileges = new ArrayList<>();
    private List<String> requirePositions = new ArrayList<>();
    private List<String> requireAnyPositions = new ArrayList<>();
    private List<String> requireUsers = new ArrayList<>();
    private List<String> requireAnyUsers = new ArrayList<>();

    public AuthType getType() {
        return type;
    }

    public void setType(AuthType type) {
        this.type = type;
    }

    public List<String> getRequireRoles() {
        return requireRoles;
    }

    public void setRequireRoles(List<String> requireRoles) {
        this.requireRoles = requireRoles;
    }

    public List<String> getRequireAnyRoles() {
        return requireAnyRoles;
    }

    public void setRequireAnyRoles(List<String> requireAnyRoles) {
        this.requireAnyRoles = requireAnyRoles;
    }

    public List<String> getRequirePrivileges() {
        return requirePrivileges;
    }

    public void setRequirePrivileges(List<String> requirePrivileges) {
        this.requirePrivileges = requirePrivileges;
    }

    public List<String> getRequireAnyPrivileges() {
        return requireAnyPrivileges;
    }

    public void setRequireAnyPrivileges(List<String> requireAnyPrivileges) {
        this.requireAnyPrivileges = requireAnyPrivileges;
    }

    public List<String> getRequirePositions() {
        return requirePositions;
    }

    public void setRequirePositions(List<String> requirePositions) {
        this.requirePositions = requirePositions;
    }

    public List<String> getRequireAnyPositions() {
        return requireAnyPositions;
    }

    public void setRequireAnyPositions(List<String> requireAnyPositions) {
        this.requireAnyPositions = requireAnyPositions;
    }

    public List<String> getRequireUsers() {
        return requireUsers;
    }

    public void setRequireUsers(List<String> requireUsers) {
        this.requireUsers = requireUsers;
    }

    public List<String> getRequireAnyUsers() {
        return requireAnyUsers;
    }

    public void setRequireAnyUsers(List<String> requireAnyUsers) {
        this.requireAnyUsers = requireAnyUsers;
    }
}
